package swu.edu.cn.javaee.mapper;

import org.springframework.stereotype.Repository;
import swu.edu.cn.javaee.entity.Article;
import swu.edu.cn.javaee.entity.Topic;

import java.util.List;

@Repository
public interface TopicMapper {
    //发布帖子
    public void saveTopic(Topic topic);
    //根据title查询帖子
    public List<Topic> queryTopicByTitle(String title);
    //删除帖子
    public void deleteTopic(Topic topic);
    //根据id查询帖子
    public Topic queryTopicById(String tid);
}
